

public class Truck extends Car {
   
    private String kind1="small";
    private String kind2="middle";
    private String kind3="big";
    public Truck(){

    }
    public Truck(double price,String kind1,String king2,String kind3){
        super(price);
        this.kind1=kind1;
        this.kind2=kind2;
        this.kind3=kind3;
        
    }

    public double plan1(double price,int daynum){
        double allprice;
        allprice=price*daynum;
        return allprice;

    }
    

    
}
